Inheritance diagram for Exponent::GUI::Controls::CSliderArray:

Definition at line 33 of file CSliderArray.hpp.
| Exponent::GUI::Controls::CSliderArray::CSliderArray | ( | IControlRoot * | root, | |
| const long | uniqueId, | |||
| const CRect & | area, | |||
| const long | widthOfSlider, | |||
| const long | sliderGap, | |||
| const long | numberOfSliders, | |||
| IActionListener * | listener = NULL | |||
| ) |
| virtual Exponent::GUI::Controls::CSliderArray::~CSliderArray | ( | ) | [virtual] |
Destruction
| void Exponent::GUI::Controls::CSliderArray::createSliders | ( | const long | widthOfSlider, | |
| const long | sliderGap | |||
| ) | [protected] |
Create the sliders
| widthOfSlider | The size of each slider | |
| sliderGap | The gap between each slider |
| virtual void Exponent::GUI::Controls::CSliderArray::drawControl | ( | CGraphics & | graphics | ) | [virtual] |
Draw the controls
| graphics | The graphics context |
Reimplemented from Exponent::GUI::Controls::CControl.
| void Exponent::GUI::Controls::CSliderArray::drawSliders | ( | CGraphics & | graphics | ) | [protected] |
Draw the sliders
| graphics | The graphics context |
| virtual long Exponent::GUI::Controls::CSliderArray::getIndexOfLastMovedSlider | ( | ) | const [inline, virtual] |
Get last moved index
| long | The index of the last moved slider, default 0 |
Definition at line 73 of file CSliderArray.hpp.
References m_lastIndex.
| virtual double Exponent::GUI::Controls::CSliderArray::getValue | ( | const long | index | ) | const [inline, virtual] |
Get the value of a slider
| index | The index of the slider to get |
| double | The value ofthe slider in range 0 - 1 |
Definition at line 67 of file CSliderArray.hpp.
References m_sliderValues.
| virtual void Exponent::GUI::Controls::CSliderArray::handleLeftButtonDown | ( | CMouseEvent & | event | ) | [virtual] |
Handle left button being clicked
| event | The event to handle |
Reimplemented from Exponent::GUI::Controls::CControl.
| virtual void Exponent::GUI::Controls::CSliderArray::handleLeftButtonUp | ( | CMouseEvent & | event | ) | [virtual] |
Handle left button being released
| event | The event to handle |
Reimplemented from Exponent::GUI::Controls::CControl.
| virtual void Exponent::GUI::Controls::CSliderArray::handleMouseLeavingArea | ( | CMouseEvent & | event | ) | [virtual] |
Handle the mouse leaving the window area
| event | The event to handle |
Reimplemented from Exponent::GUI::Controls::CControl.
| virtual void Exponent::GUI::Controls::CSliderArray::handleMouseMovement | ( | CMouseEvent & | event | ) | [virtual] |
Handle the mouse movement
| event | The event to handle |
Reimplemented from Exponent::GUI::Controls::CControl.
| virtual void Exponent::GUI::Controls::CSliderArray::setColours | ( | CAlphaColour | frameColour, | |
| CAlphaColour | backgroundColour, | |||
| CAlphaColour | handleColour, | |||
| CAlphaColour | handleDownColour | |||
| ) | [virtual] |
Set the colours
| frameColour | The colour of the frame | |
| backgroundColour | The background colour of the control | |
| handleColour | The colour of the area that can be grabbed by the user | |
| handleDownColour | The colour of the area that can be grabbed by the user when mouse is grabbing it |
| virtual void Exponent::GUI::Controls::CSliderArray::setValue | ( | const double | value, | |
| const long | index | |||
| ) | [virtual] |
Set the vlaue of a slider
| value | The value of the slider (0 - 1) | |
| index | The index of the slider to set |
long Exponent::GUI::Controls::CSliderArray::m_dragIndex [protected] |
Which slider are we dragging?
Definition at line 149 of file CSliderArray.hpp.
CAlphaColour Exponent::GUI::Controls::CSliderArray::m_handleColour [protected] |
Colour of the slider
Definition at line 139 of file CSliderArray.hpp.
CAlphaColour Exponent::GUI::Controls::CSliderArray::m_handleDownColour [protected] |
Colour of the slider when mouse is down
Definition at line 140 of file CSliderArray.hpp.
bool Exponent::GUI::Controls::CSliderArray::m_isDragging [protected] |
Are we dragging the slider
Definition at line 148 of file CSliderArray.hpp.
long Exponent::GUI::Controls::CSliderArray::m_lastIndex [protected] |
Index of last thing moved
Definition at line 150 of file CSliderArray.hpp.
Referenced by getIndexOfLastMovedSlider().
long Exponent::GUI::Controls::CSliderArray::m_numberOfSliders [protected] |
How many sliders are there?
Definition at line 143 of file CSliderArray.hpp.
long Exponent::GUI::Controls::CSliderArray::m_sliderGap [protected] |
Gaps between sliders
Definition at line 146 of file CSliderArray.hpp.
CRect* Exponent::GUI::Controls::CSliderArray::m_sliders [protected] |
The actual slider areas
Definition at line 144 of file CSliderArray.hpp.
double* Exponent::GUI::Controls::CSliderArray::m_sliderValues [protected] |
The values each slider holds
Definition at line 142 of file CSliderArray.hpp.
Referenced by getValue().
long Exponent::GUI::Controls::CSliderArray::m_widthOfSlider [protected] |
Width of the sliders
Definition at line 145 of file CSliderArray.hpp.